﻿<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<script>
	$(window).load(function() {
	loadAddFixpackageData(<%=request.getParameter("id")%>);
	callDatePicker();
});
</script>
<link href="/css/Adminconsole/pricemanager/addfix.css" rel="stylesheet" />
<span id="suggest">Add Package</span>
<table class="addtable">
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <table id="packagedetailtable">
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.packagename"));%>*</span>
                    </td>
                    <td>
                        <input type="text" id="packagename" size="50" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.stay"));%>*</span>
                    </td>
                    <td>
                        <input type="text" id="longofstay" size="10" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.description"));%>*</span>
                    </td>
                    <td>
                        <textarea id="description" style="margin: 2px; width: 328px; height: 32px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname"><% out.print(resource.getString("AdminConsole.Page.PriceManager.length"));%>*</span>
                    </td>
                    <td>
                        <input name="lengthofstay" type="radio" value="forever" checked onChange="checklengthofstay()" />
                        <% out.print(resource.getString( "AdminConsole.Page.PriceManager.forever"));%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="tagname">&nbsp;</span>
                    </td>
                    <td>
                        <input name="lengthofstay" type="radio" value="not" onChange="checklengthofstay()" />
                        <% out.print(resource.getString( "AdminConsole.Page.PriceManager.fixdate"));%>
                            &nbsp;
                            <% out.print(resource.getString( "AdminConsole.Page.PriceManager.between"));%>
                                <input type="text" id="from" maxlength="15" size="10" disabled/>&nbsp;&nbsp;
                                <% out.print(resource.getString( "AdminConsole.Page.PriceManager.to"));%>
                                    <input type="text" id="to" maxlength="15" size="10" disabled/>
                    </td>
                </tr>
                <tr>
                    <td class="tagname tworow">
                        <span><% out.print(resource.getString("AdminConsole.Page.PriceManager.available"));%>*</span>
                    </td>
                    <td>
                        <table id="gtList" cellpadding="0" cellspacing="0" style="width:100%;border-bottom:solid 1px #e0e0e1;border-left:solid 1px #e0e0e1;border-right:solid 1px #e0e0e1;border-top:solid 1px #e0e0e1">
                            <tr>
                                <td colspan="3" style="text-align:center;border-bottom:solid 1px #e0e0e1">
                                    <span>-<% out.print(resource.getString("AdminConsole.Page.PriceManager.guesttypes"));%>-</span>
                                </td>
                            </tr>

                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span style="float:right;padding-right:30px">
							<% out.print(resource.getString("AdminConsole.Page.PriceManager.packagecontrol"));%>*
						</span>
                    </td>
                    <td>
                        <input name="gtype_on" type="checkbox" value="on" onClick="swicth(name)" />
                        <% out.print(resource.getString( "AdminConsole.Page.PriceManager.on"));%>&nbsp;&nbsp;
                            <input name="gtype_off" type="checkbox" value="off" onClick="swicth(name)" />
                            <% out.print(resource.getString( "AdminConsole.Page.PriceManager.off"));%>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;&nbsp;&nbsp;
        </td>
    </tr>
    <tr>
        <td style="border-top:solid 1px #e0e0e1;">
            &nbsp;&nbsp;&nbsp;
        </td>
    </tr>
    <tr>
        <td>
            <span style="padding-left:30px">
				<% out.print(resource.getString("AdminConsole.Page.PriceManager.ratepackage"));%>
			</span>
        </td>
    </tr>
    <tr>
        <td>
            <table id="rtList" style="width:100%;text-align:center;background-color:#FFF;font-size:14px;border:solid 1px #e0e0e1;" cellpadding="0" cellspacing="0">
                <tr>
                    <td rowspan="2" style="border:solid 1px #e0e0e1;">
                        <span>
							<% out.print(resource.getString("AdminConsole.Page.RoomTypes"));%>
						</span>
                    </td>
                    <td rowspan="2" style="border:solid 1px #e0e0e1;">
                        <span>
                        	<% out.print(resource.getString("AdminConsole.Page.RoomTypes.baseocc"));%>
                        </span>
                    </td>
                    <td rowspan="2" style="border:solid 1px #e0e0e1;">
                        <span>
                        	<% out.print(resource.getString("AdminConsole.Page.RoomTypes.maxocc"));%>
                        </span>
                    </td>
                    <td colspan="3" style="border:solid 1px #e0e0e1;">
                        <span>
                        	<% out.print(resource.getString("AdminConsole.Page.RoomTypes.rackrate"));%>
                        </span>
                    </td>
                    <td colspan="3" style="border:solid 1px #e0e0e1;">
                        <span>
                        	<% out.print(resource.getString("AdminConsole.Page.RoomTypes.discountrate"));%>
                        </span>
                    </td>

                </tr>
                <tr>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.pricepernight"));%></span>
                    </td>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.upcharge"));%></span>
                    </td>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.extrabed"));%></span>
                    </td>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.pricepernight"));%></span>
                    </td>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.upcharge"));%></span>
                    </td>
                    <td style="border:solid 1px #e0e0e1;">
                        <span><% out.print(resource.getString("AdminConsole.Page.RoomTypes.extrabed"));%></span>
                    </td>
                </tr>

            </table>
        </td>
    </tr>
    <tr>
        <td style="border:solid 1px #e0e0e1;background-color:#FFFFFF"><span>
        (<% out.print(resource.getString("AdminConsole.Page.PriceManager.warning"));%>)
        </span>
        </td>
    </tr>
    <tr>

        <td><span style="text-align:center"><center><input class="addbtn"name="save" type="button" value="Save" onClick="addfixedpackage()"/><input class="deletebtn"name="cancel" type="button" value="Cancel" onClick="cancelFixedPackege();"/></center></span>
        </td>
    </tr>
</table>